class PageObserver < ActiveRecord::Observer

  def after_create(page)
    page.friend.dneirfships.each {|f| f.add_hint(:page); f.save}
  end

  def after_save(page)
    page.friend.dneirfships.each {|f| f.add_hint(:page); f.save}
  end

end